<template>
  <div class="my_div">
<!-- <div v-for="item in dogList" :key="item.name" class="my_div img"> -->
  <img :src="list.dogImgUrl" alt="">
  <p @click="btn"> {{ list.dogName }} </p>
<!-- </div> -->
  </div>
</template>

<script>
export default {
  data () {
    return {

    }
  },

  props: ['list'],

  created () {

  },

  methods: {
    btn () {
      // console.log(this.list.dogName)
      this.$emit('add', this.list.dogName)
    }
  }
}
</script>

<style scoped>
.my_div {
  width: 200px;
  border: 1px solid black;
  text-align: center;
  float: left;
}

.my_div img {
  width: 100%;
  height: 200px;
}
</style>
